import { RouteRecordRaw } from "vue-router";
import { SettingIcon } from "@/components/Icon";

const routes: RouteRecordRaw[] = [
  {
    path: "/system",
    name: "System",
    component: () => import("@/layout/index.vue"),
    meta: {
      title: "系统管理",
      icon: SettingIcon,
      sort: 900,
    },
    children: [
      {
        path: "user",
        name: "SystemUser",
        component: () => import("@/views/system/user/index.vue"),
        meta: {
          title: "用户管理",
        },
      },
      {
        path: "menu",
        name: "SystemMenu",
        component: () => import("@/views/system/menu/index.vue"),
        meta: {
          title: "菜单管理",
        },
      },
      {
        path: "role",
        name: "SystemRole",
        component: () => import("@/views/system/role/index.vue"),
        meta: {
          title: "角色管理",
        },
      },

      // 可以继续添加其他系统管理子页面
    ],
  },
];

export default routes;
